package 进制转换;
import java.util.Scanner;
public class 十进制转十六进制 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int a = scanner.nextInt();
        String b = Integer.toHexString(a).toUpperCase();
//        String c = Integer.toString(a,16);

        System.out.println(b);

    }
}
